package ru.papergames.common.form;

import ru.papergames.common.model.BattleServerCredentials;

/**
 * @author Alexander Troshanin
 */
public class BattleServerCredentialsForm {

    private long id;

    private String host;

    private int port;

    private String userHost;

    private int userPort;

    public BattleServerCredentialsForm(BattleServerCredentials credentials) {
        this.id = credentials.getId();
        this.host = credentials.getHost();
        this.port = credentials.getPort();
        this.userHost = credentials.getUserHost();
        this.userPort = credentials.getUserPort();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUserHost() {
        return userHost;
    }

    public void setUserHost(String userHost) {
        this.userHost = userHost;
    }

    public int getUserPort() {
        return userPort;
    }

    public void setUserPort(int userPort) {
        this.userPort = userPort;
    }
}
